/*
 * USBSerialModule.h
 *
 *  Created on: Feb 23, 2012
 *      Author: xum
 */

#ifndef USBSERIALMODULE_H_
#define USBSERIALMODULE_H_
#include "Arduino.h"
#include "SenderModule.h"
#include "ReceiverModule.h"
#include "HardwareSerial.h"

class USBSerialModule:public SenderModule,public ReceiverModule {
private:
	unsigned long rate;
public:
	USBSerialModule(unsigned long rate);
	void sendMessage(Message& message);
	Message receiveMessage();

};

#endif /* USBSERIALMODULE_H_ */
